import { post } from '@/utils/fetch';

export const getRoleList = data => post('/usercenter-admin-app/admin/sysRole/selectPage', data);
export const getOrgRoleList = data => post('/usercenter-admin-app/admin/sysRole/selectOrgRolePage', data);
export const getOrgList = data => post('/usercenter-admin-app/admin/sysOrg/selectPage', data);
export const addRole = data => post('/usercenter-admin-app/admin/sysRole/insert', data);
export const addOrgRole = data => post('/usercenter-admin-app/admin/sysRole/insertOrgRole', data);
export const updateRole = data => post('/usercenter-admin-app/admin/sysRole/update', data);
export const updateOrgRole = data => post('/usercenter-admin-app/admin/sysRole/updateOrgRole', data);
export const deleteRole = data => post('/usercenter-admin-app/admin/sysRole/delete', data);
export const getMenuTreeData = data => post('/usercenter-admin-app/admin/sysResource/menu/selectList', data);
export const getRoleUserList = data => post('/usercenter-admin-app/admin/sysUserRole/selectPage', data);

